package org.iteam.core.service;

import java.sql.SQLException;
import java.util.List;

public interface BaseServiceInterface<T> {
	public List<T> query() throws SQLException;

	public List<T> queryByPage(long page, long rows) throws SQLException;

	public long count() throws SQLException;

	public T show(String id) throws SQLException;

	public boolean create(T object) throws SQLException;

	public boolean update(T object) throws SQLException;

	public boolean delete(String id) throws SQLException;

	public boolean destroy(String id) throws SQLException;
}
